package entity;

/**
 * GuoId entity. @author MyEclipse Persistence Tools
 */

public class GuoId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String path;
	private Double minx;
	private Double miny;
	private Double maxx;
	private Double maxy;

	// Constructors

	/** default constructor */
	public GuoId() {
	}

	/** full constructor */
	public GuoId(Integer id, String path, Double minx, Double miny,
			Double maxx, Double maxy) {
		this.id = id;
		this.path = path;
		this.minx = minx;
		this.miny = miny;
		this.maxx = maxx;
		this.maxy = maxy;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Double getMinx() {
		return this.minx;
	}

	public void setMinx(Double minx) {
		this.minx = minx;
	}

	public Double getMiny() {
		return this.miny;
	}

	public void setMiny(Double miny) {
		this.miny = miny;
	}

	public Double getMaxx() {
		return this.maxx;
	}

	public void setMaxx(Double maxx) {
		this.maxx = maxx;
	}

	public Double getMaxy() {
		return this.maxy;
	}

	public void setMaxy(Double maxy) {
		this.maxy = maxy;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof GuoId))
			return false;
		GuoId castOther = (GuoId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getPath() == castOther.getPath()) || (this.getPath() != null
						&& castOther.getPath() != null && this.getPath()
						.equals(castOther.getPath())))
				&& ((this.getMinx() == castOther.getMinx()) || (this.getMinx() != null
						&& castOther.getMinx() != null && this.getMinx()
						.equals(castOther.getMinx())))
				&& ((this.getMiny() == castOther.getMiny()) || (this.getMiny() != null
						&& castOther.getMiny() != null && this.getMiny()
						.equals(castOther.getMiny())))
				&& ((this.getMaxx() == castOther.getMaxx()) || (this.getMaxx() != null
						&& castOther.getMaxx() != null && this.getMaxx()
						.equals(castOther.getMaxx())))
				&& ((this.getMaxy() == castOther.getMaxy()) || (this.getMaxy() != null
						&& castOther.getMaxy() != null && this.getMaxy()
						.equals(castOther.getMaxy())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getPath() == null ? 0 : this.getPath().hashCode());
		result = 37 * result
				+ (getMinx() == null ? 0 : this.getMinx().hashCode());
		result = 37 * result
				+ (getMiny() == null ? 0 : this.getMiny().hashCode());
		result = 37 * result
				+ (getMaxx() == null ? 0 : this.getMaxx().hashCode());
		result = 37 * result
				+ (getMaxy() == null ? 0 : this.getMaxy().hashCode());
		return result;
	}

}